#!/bin/bash
SIZE="127 512 1024 2048 4096"
OUTPUT="ex05_2.dat"
# run only on local node
#Parameters for ./bin/heatrelax <iterations> <size> <heat value>[opt]
echo "#1:viewsize 2:iterations 3:runtime[sec] 4:averageTime 5:Flops 6:Flops total" > $OUTPUT
for i in $SIZE
do
echo "Iteration " $i
mpirun -host $HOSTNAME -np 1 ./bin/heatrelax 100 $i 127 >> $OUTPUT
done
